﻿
namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 工位表
    /// </summary>
    [SugarTable("cks_work_rec")]
    [Table(Name = "cks_work_rec")]
    public class CksWorkRecord : BaseEntity
    {
        /// <summary>
        /// 工位Id 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// PlcID 
        /// </summary>
        public int PlcID { get; set; }

        /// <summary>
        /// 读取DB块
        /// </summary>
        public int ReadDB { get; set; }

        /// <summary>
        /// 条码
        /// </summary>
        public string PrimaryCode { get; set; }


        /// <summary>
        /// 入站时间
        /// </summary>
        public DateTime? MoveInTime { get; set; }

        /// <summary>
        /// 生产开始时间
        /// </summary>
        public DateTime? ProductionStartTime { get; set; }

        /// <summary>
        /// 生产结束时间
        /// </summary>
        public DateTime? ProductionEndTime { get; set; }

        /// <summary>
        /// 出站时间
        /// </summary>
        public DateTime? MoveOutTime { get; set; }

        /// <summary>
        /// CreatedTime 
        /// </summary>
        public DateTime? CreatedTime { get; set; }

    }
}